package com.hoshiibuy.company.feign;

import com.hoshiibuy.common.rpc.Response;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author guangjinwei
 * @create 2019-04-25
 */
@FeignClient(name = "hoshiibuy-neo4j", fallback = HystrixNeo4jFeignFallback.class)
public interface INeo4jService {

    @GetMapping(value = "/neo4j/create/tenant", consumes = "application/json")
    Response createTenant(String tenant);

    @GetMapping(value = "/neo4j/create/organization", consumes = "application/json")
    Response createOrganization(String org);
}
